/// data : [{"id":6,"link":"","name":"面试","order":1,"visible":1},{"id":9,"link":"","name":"Studio3","order":1,"visible":1},{"id":5,"link":"","name":"动画","order":2,"visible":1},{"id":1,"link":"","name":"自定义View","order":3,"visible":1},{"id":2,"link":"","name":"性能优化 速度","order":4,"visible":1},{"id":3,"link":"","name":"gradle","order":5,"visible":1},{"id":4,"link":"","name":"Camera 相机","order":6,"visible":1},{"id":7,"link":"","name":"代码混淆 安全","order":7,"visible":1},{"id":8,"link":"","name":"逆向 加固","order":8,"visible":1}]
/// errorCode : 0
/// errorMsg : ""

class HotEntity {
  List<DataBean>? data;
  int? errorCode;
  String? errorMsg;

  static HotEntity? fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    HotEntity hotEntityBean = HotEntity();
    hotEntityBean.data = [...(map['data'] as List).map((o) => DataBean.fromMap(o)!)];
    hotEntityBean.errorCode = map['errorCode'];
    hotEntityBean.errorMsg = map['errorMsg'];
    return hotEntityBean;
  }

  Map toJson() => {
    "data": data,
    "errorCode": errorCode,
    "errorMsg": errorMsg,
  };
}

/// id : 6
/// link : ""
/// name : "面试"
/// order : 1
/// visible : 1

class DataBean {
  int? id;
  String? link;
  String? name;
  int? order;
  int? visible;

  static DataBean? fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    DataBean dataBean = DataBean();
    dataBean.id = map['id'];
    dataBean.link = map['link'];
    dataBean.name = map['name'];
    dataBean.order = map['order'];
    dataBean.visible = map['visible'];
    return dataBean;
  }

  Map toJson() => {
    "id": id,
    "link": link,
    "name": name,
    "order": order,
    "visible": visible,
  };
}